home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20041116-20060924 / 000084_vikrant.shahir@gmail.com_Thu Apr 14 09:16:57 2005.msg < prev    next >
Internet Message Format  |  2006-09-27  |  2KB

  1. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!4.24.21.218.MISMATCH!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail
  2. From: "vikrant.shahir@gmail.com" <vikrant.shahir@gmail.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: calling kermit script  through JSP page
  5. Date: 14 Apr 2005 00:57:23 -0700
  6. Organization: http://groups.google.com
  7. Lines: 39
  8. Message-ID: <1113465443.874463.62130@l41g2000cwc.googlegroups.com>
  9. NNTP-Posting-Host: 202.63.168.35
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset="iso-8859-1"
  12. X-Trace: posting.google.com 1113465460 22126 127.0.0.1 (14 Apr 2005 07:57:40 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Thu, 14 Apr 2005 07:57:40 +0000 (UTC)
  15. User-Agent: G2/0.2
  16. Complaints-To: groups-abuse@google.com
  17. Injection-Info: l41g2000cwc.googlegroups.com; posting-host=202.63.168.35;
  18.    posting-account=IvJR2A0AAAA49r1jRi6JyM_8WEHa4lpw
  19. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15320
  20.  
  21. hi all,
  22.  
  23. I would like to thank all of you and greatly to the "creator" of
  24. kermit, Mr. Frank.
  25. I was able to get connected to a GSM modem and was able to transfer a
  26. 100kb of file from one end to other using kermit.
  27.  
  28. The kermit script(following) is written to attain the functionality.
  29. The script when executed from the terminal executes well,
  30. like this "./script_name <cell no> <file name>"
  31. But i am facing a small problem...
  32. when the script is called from a JSP page it partially runs!
  33. meaning ...please see the following comments in brackets in script.
  34.    #!/usr/bin/kermit +   ;SCRIPT START
  35.         set disconnect on
  36.         set line /dev/ttyS0          .....(DOES NOT WORKS)
  37.  
  38.         open write /vikrant/check.txt......(WORKS)
  39.         write file \%1 \%2           ......(WORKS)
  40.         close write-file             ......(WORKS)
  41.  
  42.         set exit warning off
  43.         cd /vikrant/inbox
  44.         set dial timeout 70
  45.         dial \%1                     .....(DOES NOT WORKS)
  46.         if fail exit 1
  47.         kermit -g /vikrant/outbox/*\%2
  48.   exit                 ;SCRIPPT END
  49.  
  50.  Meaning ...the 3 line are executed which writes 2 parameters
  51.  into a file "check.txt"
  52.  the "set line" and "dial" command is not executed ...where as, it is
  53. all executed
  54.  when invoked from terminal
  55.  
  56.  what probably would be the reason ?
  57.  with regards
  58.  Vikrant
  59.